<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type='text/javascript' src='js/Charts/FusionCharts.js'></script>
<script type='text/javascript' src='js/Charts/jquery.min.js'></script>
<!-- <script type="text/javascript">
	alert("hah ");
</script> -->
 
</head>

<body>
	<div id="course"></div>
	<div id="div"></div>
</body>
  <script type="text/javascript">
    var chart = new FusionCharts("js/Charts/Column3D.swf", "hartId", "600", "500");
   	var json = '${json}';
   	var list = eval(json);
   	var charts = "<chart showBorder='1' yAxisMinValue='100' borderColor='#cfaec1' yAxisMaxValue='100' xaxisname='月份' yaxisname='销售量' >";
   	for(var i = 0; i < list.length; i++){
   		charts+="<set name='"+list[i].month+"' value='"+list[i].count+"' />"
		}
		charts +="</chart>";
		chart.setDataXML(charts);
		chart.render("div");
	</script>
</html>